<template>
	<view class="wrapper">
		<view class="center f30">
			新公司名称
			<input type="text" placeholder="请输入公司名" class="flex" focus="" v-model="companyName"/>
		</view>
		<button class="cfff f30" @tap="companyModify">确认修改</button>
	</view>
</template>

<script>
export default {
	data() {
		return {
			companyName: '',
			companyId:''
		};
	},
	onLoad(e) {
		this.companyId=e.Companyid
	},
	methods: {
		companyModify(){
			this.$ajax(this.apiList.companyModify,{
				companyId:this.companyId,
				companyName:this.companyName
			}).then(res => {
				this.$sToast('修改成功')
				this.$back(1,1500)
			});
		}
	}
};
</script>

<style lang="scss">
.cblue {
	color: #0297fe;
}
button {
	width: 710rpx;
	height: 80rpx;
	background: rgba(2, 151, 254, 1);
	border-radius: 4rpx;
	margin-top: 20rpx;
}
.center {
	background: #ffffff;
	padding: 0 30rpx;
	input {
		height: 104rpx;
		line-height: 104rpx;
		text-indent: 20rpx;
	}
}
.f26 {
	padding: 31rpx;
}
page {
	background: #f3f3f3;
}
</style>
